package com.afalon.cloud;

import java.util.HashMap;
import java.util.Map;

public class MapExtensions {
	
	public static Map<String, String> parseMap(final String input) {
        final Map<String, String> map = new HashMap<String, String>();
        for (String pair : input.split(",")) {
            String[] kv = pair.split("=",2);
            map.put(kv[0].replace(" ", ""), kv[1].replace("\"", ""));
        }
        return map;
    }

}
